import request from '@/utils/request'

// 查询roomtype列表
export function listRoomtype(query) {
  return request({
    url: '/roomtypeAction/list',
    method: 'get',
    params: query
  })
}

// 查询roomtype详细
export function getRoomtype(roomtypeId) {
  return request({
    url: '/roomtypeAction/' + roomtypeId,
    method: 'get'
  })
}

// 新增roomtype
export function addRoomtype(data) {
  return request({
    url: '/roomtypeAction',
    method: 'post',
    data: data
  })
}

// 修改roomtype
export function updateRoomtype(data) {
  return request({
    url: '/roomtypeAction',
    method: 'put',
    data: data
  })
}

// 删除roomtype
export function delRoomtype(roomtypeId) {
  return request({
    url: '/roomtypeAction/' + roomtypeId,
    method: 'delete'
  })
}

// 导出roomtype
export function exportRoomtype(query) {
  return request({
    url: '/roomtypeAction/export',
    method: 'get',
    params: query
  })
}